From 4e44a5e52e8be71c2e79fae3956dab42cf88caa6 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Tue, 14 Feb 2006 22:36:22 +0100 Subject: [PATCH] Fix gcc4 build. Signed-off-by: Steve Dobbelstein Signed-off-by: Keir Fraser --- xen/include/asm-x86/processor.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/xen/include/asm-x86/processor.h b/xen/include/asm-x86/processor.h index 2bd818d539..585f4bed26 100644 --- a/xen/include/asm-x86/processor.h +++ b/xen/include/asm-x86/processor.h @@ -213,15 +213,17 @@ static always_inline void detect_ht(struct cpuinfo_x86 *c) {} : "0" (_op), "2" (0)) /* Some CPUID calls want 'count' to be placed in ecx */ -static inline void cpuid_count(int op, int count, int *eax, int *ebx, int *ecx, - int *edx) +static inline void cpuid_count( + int op, + int count, + unsigned int *eax, + unsigned int *ebx, + unsigned int *ecx, + unsigned int *edx) { - __asm__("cpuid" - : "=a" (*eax), - "=b" (*ebx), - "=c" (*ecx), - "=d" (*edx) - : "0" (op), "c" (count)); + __asm__("cpuid" + : "=a" (*eax), "=b" (*ebx), "=c" (*ecx), "=d" (*edx) + : "0" (op), "c" (count)); } /* -- 2.30.2